<?php

namespace app\exception;

class TokenInvalidException extends \RuntimeException
{
    public $message;
    public $httpCode;
    public $code;

    public function __construct(string $message = '登录已过期,请重新登录', int $httpCode = 200, $code = -101)
    {
        $this->message = $message;
        $this->httpCode = $httpCode;
        $this->code = $code;
    }
}